using System;
using System.Collections.Generic;
using System.Text;

using Weazel.Microblaze.Simulator.Engine;

namespace Weazel.Microblaze.Simulator.Components.Microblaze.Instructions
{
    /// <summary>
    /// Break immediate
    /// </summary>
    public class Brki : Instruction
    {
        public override int CycleCount
        {
            get { return 3; }
        }

        public Brki()
            : base("brki")
        {
        }

        public override void Execute(MicroblazeComponent MicroblazeComponent)
        {
            throw new Exception("The method or operation is not implemented.");
        }

        public override string ToString()
        {
            return string.Format("brki r{0}, r{1}",
              DestinationRegister,
              SourceRegisterB
            );
        }
    }
}
